package org.example.service;

import org.example.domain.po.ErpMaterialCategory;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.domain.po.ErpMenu;
import org.example.domain.po.ErpOrganization;
import org.example.domain.vo.ErpMaterialCategoryVo;
import org.example.domain.vo.ErpOrganizationVO;
import org.example.utils.Result;

import java.util.List;

/**
* @description 针对表【erp_material_category(产品类型表)】的数据库操作Service
*/
public interface ErpMaterialCategoryService extends IService<ErpMaterialCategory> {

//    List<ErpMaterialCategory> findTree(Integer parentId);
    List<ErpMaterialCategoryVo> selectOrganVOTree();

    List<ErpMaterialCategoryVo> queryParent(Long id, Long parentId, Long tenantId);

    boolean updateOrgan(ErpMaterialCategory organization);

    boolean organInsert(ErpMaterialCategory organization);

    boolean removeBatchByOrgAbs(List<String> organAbs, Long tenantId);
    
    List<ErpMaterialCategoryVo> findCategoryByTenantId(Long tenantId);
    
    List<Long> getIds(Long categoryId);
}
